<?php
@session_start();
$link=mysql_connect("localhost", "root", "");
if(!$link){

	echo "not connected to database";
}

mysql_select_db("techworks");

$id = $_SESSION['pid2'];
$descIndustry= $_POST['desc-industry'];
$descCustomer= $_POST['desc-customers'];
$competitors= $_POST['competitors'];
$competitionAdv= $_POST['compet-adv'];
$comRegulation= $_POST['com-regulations'];



$q= mysql_query ("UPDATE `tw_market_research` SET `desc_industry` = '$descIndustry', `desc_customers` = '$descCustomer', `industry_competitors` = '$competitors', `competition_adv` = '$competitionAdv', `company_regulation` = '$comRegulation' where `plan_id`='$id' ");

if($q){
	$_SESSION['amr']= "success";
	header("location: ../incubatee/edit_plan.php#tab_tab4 ");


		
}else {
	echo mysql_error();
	//header("location: ../incubatee/edit_plan.php#tab_tab4");


}


?>

